﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultWithLeft.Master"
  AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="NguyenHoa.Web.Pages.ProductList" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContentMain" runat="server">
  <div class="content_mid_w560">
    <dxdv:ASPxDataView ID="dvProducts" ClientInstanceName="dvProducts" runat="server"
      ColumnCount="1" RowPerPage="10" ItemSpacing="0px" PagerPanelSpacing="0px" BackColor="Transparent"
      PagerAlign="Right" EmptyDataText="<%$ Resources:Messages, ERR0058 %>" Width="100%"
      OnDataBound="dvProducts_DataBound">
      <Border BorderStyle="None" />
      <Paddings Padding="0" PaddingTop="10px" />
      <ItemStyle BackColor="Transparent" Width="100%">
        <Paddings Padding="0px" />
        <Border BorderStyle="None" />
      </ItemStyle>
      <ItemTemplate>
        <div class="company_block clear">
          <div class="fleft p3">
            <a class="box_img" href='ProductDetail.aspx?id=<%# Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
              <img id="Img2" src='<%#"~/Upload/Images/"+Eval("Image") %>' alt="" runat="server"
                width="138" />
            </a>
          </div>
          <h3>
            <a href='ProductDetail.aspx?id=<%# Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
              <%#Eval("Name") %>
            </a>
          </h3>
          <div class="price">
            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Strings, Price %>"></asp:Label>:
            <span class="price_num">
              <%#Eval("RefPrice").ToString()%></span>
          </div>
          <div>
            <div class="text_content">
              <%#Eval("Description") %></div>
            <a class="link_text" href='ProductDetail.aspx?id=<%# Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
              <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Strings, Detail%>"></asp:Literal></a>
          </div>
        </div>
      </ItemTemplate>
      <PagerSettings Position="Bottom">
      </PagerSettings>
    </dxdv:ASPxDataView>
  </div>
</asp:Content>
